<!DOCTYPE html>

<html lang="en-US">
 <@common.header/>

<body class="page-sub-page page-agent-detail" id="page-top">
<!-- Wrapper -->
<div class="wrapper">
    <!-- Navigation -->
     <@common.nav/><!-- /.navigation -->
    <!-- end Navigation -->
    <!-- Page Content -->
    <div id="page-content">
        <!-- Breadcrumb -->
        <div class="container">
            <ol class="breadcrumb">
                <li><a href="#">主页</a></li>
                <li class="active">经纪人详情</li>
            </ol>
        </div>
        <!-- end Breadcrumb -->

        <div class="container">
            <div class="row">
                <!-- Agent Detail -->
                <div class="">
                    <section id="agent-detail">
                        <header><h1>${agent.name!}</h1></header>
                        <section id="agent-info">
                            <div class="row">
                                <div class="col-md-3 col-sm-3">
                                    <figure class="agent-image"><img alt="" src="${(agent.avatar)!}"></figure>
                                </div><!-- /.col-md-3 -->
                                <div class="col-md-4 col-sm-4" style="font-size: 18px;font-weight: 600">
                                    <h3>联系信息</h3>
                                    <dl>
                                        <dt>咨询电话:</dt>
                                        <dd>${(agent.phone)!}</dd>
                                        <dt>邮件:</dt>
                                        <dd><a href="mailto:#">${(agent.email)!}</a></dd>
                                        <dt>QQ:</dt>
                                        <dd>${agent.qq!'76462894'}</dd>
                                        <dt>所属机构:</dt>
                                        <dd>${(agent.agencyName)!}</dd>
                                        <dt>注册时间:</dt>
                                        <dd>${(agent.createTime?date)}</dd>
                                        <dt>标签：</dt>
                                        <dd><div class="tag " >销售达人</div><div class="tag " >房东信赖</div><div class="tag " >客户热评</div></dd>

                                    </dl>
                                    <div >
                                    </div>
                                </div><!-- /.col-md-5 -->
                                <div class="col-md-4 col-sm-4">
                                    <h2>简介</h2>
                                    <p style="font-size: 16px;font-weight: 500">${agent.aboutme!}
                                    </p>
                                    <a   target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=${agent.qq!'76462894'}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:76462894:53" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>

                                </div><!-- /.col-md-4 -->
                            </div><!-- /.row -->
                            
                        </section><!-- /#agent-info -->
                        <hr class="thick">
                        <section id="agent-properties">
                            <header><h1>我代理的房产</h1></header>
                            <div>
                                <div class="row">
                                  <#list bindHouses as house>
                                    <div class="col-md-4 col-sm-4">
                                        <div class="property">
                                            <a href="/house/detail?id=${house.id}">
                                                <div class="property-image">
                                                    <img alt="" src="/static/assets/img/properties/property-09.jpg">
                                                </div>
                                                <div class="overlay">
                                                    <div class="info">
                                                        <div class="tag price">￥ ${house.price}</div>
                                                        <h3>${house.name}</h3>
                                                        <figure>${house.address}</figure>
                                                    </div>
                                                    <ul class="additional-info">
                                                        <li>
                                                            <header>面积:</header>
                                                            <figure>${house.area}<sup>2</sup></figure>
                                                        </li>
                                                        <li>
                                                            <header>床:</header>
                                                            <figure>${house.beds}</figure>
                                                        </li>
                                                        <li>
                                                            <header>洗手间:</header>
                                                            <figure>${house.baths}</figure>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </a>
                                        </div><!-- /.property -->
                                    </div><!-- /.col-md-4 -->
                                   </#list>
                                </div><!-- /.row-->
                               
                            </div>
                           
                        </section><!-- /#agent-properties -->
                        <hr class="thick">
                        <div class="row">

                            <div >

                                <h1>给${agent.name!}留言</h1>
                                <div class="agent-form">
                                    <form role="form" id="form-contact-agent" method="post"  class="clearfix" action="/agency/agentMsg">
                                         <input type="hidden" name="agentId" value="${agent.id!}">


                                         <#--<div class="row">
                                           <div class="col-md-6">
                                               <div class="form-group">
                                                   <label for="form-contact-agent-name">名字<em>*</em></label>
                                                   <input type="text" class="form-control" id="form-contact-agent-name" name="name" required>
                                               </div>
                                          </div>

                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label for="form-contact-agent-email">手机号<em>*</em></label>
                                                    <input type="email" class="form-control" id="form-contact-agent-email" name="phone" required>
                                                </div>
                                            </div>
                                          </div>
-->

                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="form-group">
                                                    <label for="form-contact-agent-message">信息<em>*</em></label>
                                                    <textarea class="form-control" id="form-contact-agent-message" rows="5" name="msg"></textarea>
                                                </div><!-- /.form-group -->
                                            </div><!-- /.col-md-12 -->
                                        </div><!-- /.row -->
                                        <div class="form-group clearfix">
                                            <button type="submit" class="btn pull-right btn-default" id="form-contact-agent-submit" style="font-size: 20px;font-weight: 600">留言</button>
                                        </div><!-- /.form-group -->
                                        <div id="form-rating-status"></div>
                                    </form><!-- /#form-contact -->
                                </div><!-- /.rating-form -->
                            </div>
                        </div><!-- /.row -->
                    </section><!-- /#agent-detail -->
                </div><!-- /.col-md-9 -->
                <!-- end Agent Detail -->


            </div><!-- /.row -->
        </div><!-- /.container -->
    </div>
    <!-- end Page Content -->
    <!-- Page Footer -->
   
        <@common.footer/>
    <!-- end Page Footer -->
</div>

<@common.js/>
<!--[if gt IE 8]>
<script type="text/javascript" src="/assets/js/ie.js"></script>
<![endif]-->
 <script  type="text/javascript" >
    $(document).ready(function() {
          var errorMsg   = "${errorMsg!""}";
          var successMsg = "${successMsg!""}";
          if(errorMsg){ 
              errormsg("error",errorMsg);
          }
          if(successMsg) {
              successmsg("success",successMsg);
          }
        })
        
 </script>

</body>
</html>